package com.squirrel.serialportcore;

import com.squirrel.serialportcore.machine.init.BeforeGlobalInitializer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 启动类 允许自动配置与被服务发现
 *
 * @author Squbi
 * @date 2021/3/21 18:30
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
public class SerialPortCoreApplication {

    public static void main(String[] args) {
        BeforeGlobalInitializer.run();
        SpringApplication.run(SerialPortCoreApplication.class, args);
    }
}
